package com.jetpack.jetpacknavtest

import android.app.Application
import androidx.databinding.ObservableField
import androidx.lifecycle.AndroidViewModel

/**
 * Created by harisucici on 2020/5/11
 * Class description:
 */
class MyViewModel(application: Application) : AndroidViewModel(application){

    var age  =  ObservableField (0)
    var name: String = ""


    fun add() {
        age.set(age.get()!!.plus(1))
    }


}